package com.ruoyi.DataManage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 学科专业统计对象 subject_tree
 *
 * @author CehnFneg
 * @date 2024-04-22
 */
public class Subject_tree extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，表示学科id */
    private Long id;

    /** 节点名称 */
    @Excel(name = "节点名称")
    private String name;

    /** 0代表学科，1代表专业 */
    @Excel(name = "0代表学科，1代表专业")
    private Long type;

    /**
     * 门类id
     */
    @Excel(name = "门类Id")
    private Long categoryId;

    /**
     * 门类名称
     */
    @Excel(name = "门类名称")
    private String categoryName;

    /**
     * 学校id
     */
    @Excel(name = "学校id")
    private Long universityId;

    public Long getUniversityId() {
        return universityId;
    }

    public void setUniversityId(Long universityId) {
        this.universityId = universityId;
    }

    /**
     * 学校名称
     */
    @Excel(name = "学校名称")
    private String universityName;

    public String getUniversityName() {
        return universityName;
    }

    public void setUniversityName(String universityName) {
        this.universityName = universityName;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setType(Long type)
    {
        this.type = type;
    }

    public Long getType()
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("parentId", getParentId())
                .append("name", getName())
                .append("type", getType())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
